package cn.iocoder.yudao.module.crm.controller.admin.tasktype.vo.tasktypeapprover;

import cn.iocoder.yudao.module.crm.dal.dataobject.tasktype.TaskTypeApproverDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

// 表示任务单类型审批人联系详情
@Data
public class TaskTypeApproverDetail {
    @Schema(description = "id", example = "15833")
    private Long id;

    @Schema(description = "用户ID", example = "26552")
    private Long userId;

    @Schema(description = "审核次序（从1开始）")
    private Integer reviewOrder;

    public static TaskTypeApproverDetail toDetail(TaskTypeApproverDO doObj) {
        if (doObj == null) {
            return null;
        }

        TaskTypeApproverDetail detail = new TaskTypeApproverDetail();
        detail.setId(doObj.getId());
        detail.setReviewOrder(doObj.getReviewOrder());
        detail.setUserId(doObj.getUserId());

        return detail;
    }
}
